package main

import (
	"fmt"
	"time"
)

func main() {
	s := []int{0, 1} //声明切片

	//遍历切片
	for num := 0; num < len(s); num++ { //死循环 加入了之后, 数组的长度一直在变大, 走不出循环
		s = append(s, s[num])
	}

	fmt.Printf("s的值是: %+v\n", s)
	time.Sleep(2 * time.Second)
}
